<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>选择器</title>
    <style>


        .success{
            background-color: lime;
        }

        .danger{
            background-color: red;
        }

        .warning{
            background-color: #2e6da4;
        }
    </style>
</head>
<body>
<table>
    <tr><td>M</td><td>M</td><td>M</td></tr>
    <tr><td>M</td><td>M</td><td>M</td></tr>
    <tr><td>M</td><td>M</td><td>M</td></tr>
    <tr><td>M</td><td>M</td><td>M</td></tr>
</table>
</body>
<script src="../../vendor/jquery.js"></script>
<script>
    $('tr:even').addClass('success');

</script>
</html>